package com.zhu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhu.domain.Areas;
import com.zhu.mapper.AreasMapper;
import com.zhu.service.AreasService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 行政区域县区信息表 服务实现类
 * </p>
 *
 * @author JoyBoy
 * @since 2022-06-02
 */
@Service
public class AreasServiceImpl extends ServiceImpl<AreasMapper, Areas> implements AreasService {
    @Override
    public List<Areas> getAreas(String citiesId) {
        QueryWrapper<Areas> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("cityid",citiesId);
        return this.list(queryWrapper);
    }
}
